package com.samebuilding.service.impl;

import java.util.List;

import com.samebuilding.dao.GiftRecordDAO;
import com.samebuilding.domain.GiftRecord;
import com.samebuilding.service.GiftRecordService;

public class GiftRecordServiceImpl implements GiftRecordService {

	private GiftRecordDAO giftRecordDAO;
	public GiftRecordDAO getGiftRecordDAO() {
		return giftRecordDAO;
	}

	public void setGiftRecordDAO(GiftRecordDAO giftRecordDAO) {
		this.giftRecordDAO = giftRecordDAO;
	}

	public GiftRecord findById(String id) {
		// TODO Auto-generated method stub
		return giftRecordDAO.findById(id);
	}

	public void save(GiftRecord gr) {
		giftRecordDAO.save(gr);

	}

	public void update(GiftRecord gr) {
		giftRecordDAO.update(gr);

	}

	public List findRecived(int userNo) {
		return giftRecordDAO.findRecived(userNo);
	}

	public List findSend(int userNo) {
		return giftRecordDAO.findSend(userNo);
	}

}
